﻿@{
    ViewData["Title"] = "AddBinLocation";
    Layout = "~/Views/Shared/Template.cshtml";
}

<form class="layui-form" action="/CreateWarehouse" method="post">
    <div class="layui-form-item layui-row">
        <div class="layui-col-md4 layui-col-sm6">
            <label class="layui-form-label">库位编号:</label>
            <div class="layui-input-block">
                <input type="text" name="binLocationNo" id="binLocationNo" lay-verify="required" placeholder="可不填写，自动生成" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-col-md4 layui-col-sm6">
            <label class="layui-form-label">仓库:</label>
            <div class="layui-input-block">
                <select name="warehouseId" id="warehouseId" lay-filter="aihao"></select>
            </div>
        </div>
    </div>

    <div class="layui-form-item layui-row">
        <div class="layui-col-md4 layui-col-sm6">
            <label class="layui-form-label">库位名称:</label>
            <div class="layui-input-block">
                <input type="text" name="binLocationName" required lay-verify="required" placeholder="请输入库位名称" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-col-md4 layui-col-sm6">
            <label class="layui-form-label">仓库类型:</label>
            <div class="layui-input-block">
                <select name="warehouseLocationId" id="warehouseLocationId" lay-filter="aihao"></select>
            </div>
        </div>
    </div>

    <div class="layui-form-item layui-row">
        <div class="layui-col-md4 layui-col-sm6">
            <label class="layui-form-label">是否默认:</label>
            <div class="layui-input-block">
                <input type="checkbox" name="isDefault" id="isDefault" lay-skin="primary" checked>
            </div>
        </div>
        <div class="layui-col-md4 layui-col-sm6">
            <label class="layui-form-label">是否禁用:</label>
            <div class="layui-input-block">
                <input type="checkbox" name="isDisable" id="isDisable" lay-skin="primary">
            </div>
        </div>
    </div>

    <div class="layui-form-item">
        <div class="layui-input-block">
            <button class="layui-btn" lay-submit lay-filter="formDemo">提交</button>
            <button type="reset" class="layui-btn layui-btn-primary">取消</button>
        </div>
    </div>
</form>

<script src="../js/warehouse/binlocation/addbinlocation.js"></script>
